<!DOCTYPE html>
<html>

<link>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="An out-of-box UI solution for enterprise applications">
<title>Ant Design Pro</title>
<link rel="icon" href="https://gw.alipayobjects.com/zos/rmsportal/IOtlElCiWVIOZqgDslYd.png" type="image/x-icon">
<script src="https://gw.alipayobjects.com/os/lib/react/16.4.2/umd/react.production.min.js"></script>
<script src="https://gw.alipayobjects.com/os/lib/react-dom/16.4.2/umd/react-dom.production.min.js"></script>
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.data-set-0.8.9/dist/data-set.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bizcharts@3.2.2/umd/BizCharts.min.js"> </script>
<script src="https://gw.alipayobjects.com/os/lib/moment.js/2.22.2/moment-with-locales.min.js"></script>
<script src="https://gw.alipayobjects.com/os/lib/antd/3.10.1/antd-with-locales.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://gw.alipayobjects.com/os/lib/antd/3.10.1/antd.min.css" />
<link rel="stylesheet" type="text/css" href="{{ root }}index.css" />
<script>
  (function () {
    function isLocalStorageNameSupported() {
      var testKey = 'test';
      var storage = window.localStorage;
      try {
        storage.setItem(testKey, '1');
        storage.removeItem(testKey);
        return true;
      } catch (error) {
        return false;
      }
    }
    // 优先级提高到所有静态资源的前面，语言不对，加载其他静态资源没意义
    var pathname = location.pathname;

    function isZhCN(pathname) {
      return /-cn\/?$/.test(pathname);
    }
    function getLocalizedPathname(path, zhCN) {
      var pathname = path.startsWith('/') ? path : '/' + path;
      if (!zhCN) { // to enUS
        return /\/?index-cn/.test(pathname) ? '/' : pathname.replace('-cn', '');
      } else if (pathname === '/') {
        return '/index-cn';
      } else if (pathname.endsWith('/')) {
        return pathname.replace(/\/$/, '-cn/');
      }
      return pathname + '-cn';
    }
    // 首页无视链接里面的语言设置 https://github.com/ant-design/ant-design/issues/4552
    if (isLocalStorageNameSupported() && (pathname === '/' || pathname === '/index-cn')) {
      var lang = (window.localStorage && localStorage.getItem('locale')) || (navigator.language.toLowerCase() === 'zh-cn' ? 'zh-CN' : 'en-US');
      // safari is 'zh-cn', while other browser is 'zh-CN';
      if ((lang === 'zh-CN') !== isZhCN(pathname)) {
        location.pathname = getLocalizedPathname(pathname, lang === 'zh-CN');
      }
    }
    document.documentElement.className += isZhCN(pathname) ? 'zh-cn' : 'en-us';
  })()
</script>
<!--[if lte IE 10]>
  <script
    src="https://as.alipayobjects.com/g/component/??console-polyfill/0.2.2/index.js,media-match/2.0.2/media.match.min.js"></script>
  <![endif]-->
<script>
  if (!window.Intl) {
    document.writeln('<script src="https://as.alipayobjects.com/g/component/intl/1.0.1/??Intl.js,locale-data/jsonp/en.js,locale-data/jsonp/zh.js">' + '<' + '/script>');
  }
  if (!window.Promise) {
    document.writeln('<script src="https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js"' + '>' + '<' + '/' + 'script>');
  }
</script>
<script>
  // Enable Google Analytics
  if (!location.port) {
    /* eslint-disable */
    (function (i, s, o, g, r, a, m) {
      i['GoogleAnalyticsObject'] = r;
      i[r] = i[r] || function () {
        (i[r].q = i[r].q || []).push(arguments)
      }, i[r].l = 1 * new Date();
      a = s.createElement(o),
        m = s.getElementsByTagName(o)[0];
      a.async = 1;
      a.src = g;
      m.parentNode.insertBefore(a, m)
    })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
    ga('create', 'UA-72788897-5', 'auto');
    ga('send', 'pageview');
    /* eslint-enable */
  }
</script>
</head>

<body>
  <div id="react-content">
    {{ content | safe }}
  </div>
  <script src="{{ root }}common.js"></script>
  <script src="{{ root }}index.js"></script>
</body>

</html>